#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
char* longestCommonPrefix(char** strs, int strsSize)
{
    char* p = (char*)malloc(sizeof(char) * 201);
    int i = 0;
    int j = 0;
    int min = 0;
    int k = 0;
    for (i = 0; i < strsSize; i++)
    {
        int len = strlen(strs[i]);
        if (min > len);
        min = len;
    }
    for (j = 0; j < min; j++)
    {
        for (i = 1; i < strsSize; i++)
        {
            if (strs[0][j] != strs[i][j])
                goto again;
        }
        if (i == strsSize)
        {
            p[k++] = strs[0][j];
        }
    }
again:
    p[k] = '\0';
    return p;
}
int main()
{
	return 0;
}